package com.cloud.pole.merchant.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cloud.pole.merchant.biz.ShopMerchantInfoBiz;
import com.cloud.pole.merchant.model.entity.ShopMerchantInfo;
import com.cloud.pole.merchant.service.ShopMerchantInfoService;

import lombok.extern.slf4j.Slf4j;

/*
*2019年8月5日
*cloud-shop-merchant
*author:frank-chen
*/
@Service
@Slf4j
public class ShopMerchantInfoServiceImpl implements ShopMerchantInfoService {

	@Autowired
	ShopMerchantInfoBiz merchantBiz;
	
	@Override
	public ShopMerchantInfo getInfoById(Integer merchantId) throws Exception {
		// TODO Auto-generated method stub
		return merchantBiz.selectByPrimaryKey(merchantId);
	}

	@Override
	public void addMerchant(ShopMerchantInfo info) throws Exception {
		// TODO Auto-generated method stub
		merchantBiz.insertUseGeneratedKeys(info);
	}
}
